package com.tvunetworks.center.user.service;

import com.tvunetworks.center.gs.model.Device;

import java.util.Collection;
import java.util.List;
/**
 * @program: tvucc-aggregator
 * @author lebronchen
 * @create: 2020-04-24 13:17
 **/
public interface DeviceService {
    /**
     *
     * @param peerId peerId
     * @return Device
     */
    Device getMemDevice(String peerId);

    /**
     *
     * @param peerId peerId
     * @return Device
     */
    Device getCurrentDevice(String peerId);

    /**
     *
     * @param peerIds peerIds
     * @return List
     */
    List<Device> listCurrentDevice(Collection<String> peerIds);

    /**
     *
     * @param peerIds peerIds
     * @param condition condition
     * @return List
     */
    List<Device> listCurrentDevice(Collection<String> peerIds, String condition);

    /**
     * 校验指定peerId的设备是否符合类型，并将符合类型的设备返回
     * @param peerIds peerIds
     * @param deviceType deviceType
     * @return List
     */
    List<String> checkDeviceType(Collection<String> peerIds, String deviceType);
}
